/*
 * 
 * Copyright ? 2006 Shanghai je01 Co. Ltd.
 * All right reserved
 * 
 * @author he.shen
 * Created on 2006-7-11
 */
package com.jycrm.dao.common.information.impl;

import com.jycrm.dao.common.information.IInvestmentDao;
import com.jycrm.dao.core.AbstractService;
import com.jycrm.domain.common.information.CrmInvestment;

public class InvestmentDaoImpl 
	extends AbstractService
	implements	IInvestmentDao {

	public void saveInvestment(CrmInvestment investment) {
		persistenceManager.create(investment);
	}

	public void updateInvestment(CrmInvestment investment) {
		persistenceManager.update(investment);
	}

	public void delInvestment(CrmInvestment investment) {
		persistenceManager.delete(investment);
	}

	public CrmInvestment getInvestmentById(String id) {
		return (CrmInvestment)queryManager.getObjectByStringId(CrmInvestment.class,id);
	}
	
	

}
